]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Bluetooth: Remove ObexFTP functionality
authorBastien Nocera <hadess@hadess.net>
Mon, 12 Nov 2012 11:55:52 +0000 (12:55 +0100)
committerBastien Nocera <hadess@hadess.net>
Tue, 13 Nov 2012 16:03:21 +0000 (17:03 +0100)
ObexFTP browsing in gvfs is completely broken, and unmaintained.
http://www.hadess.net/2011/11/obexftp-in-gnome-non-update.html

Remove the UI for it. The more adventurous can go and use it
(as long as I don't get the bug reports).

https://bugzilla.gnome.org/show_bug.cgi?id=688160

js/ui/status/bluetooth.js

index 22a1b665500539bb70362510cd2aa5c7e5fe7396..4558cc323e38416cc0050d6791407858d3703685 100644 (file)
@@ -239,22 +239,6 @@ const Indicator = new Lang.Class({
                 this._applet.send_to_address(device.bdaddr, device.alias);
             }));
         }
-        if (device.capabilities & GnomeBluetoothApplet.Capabilities.OBEX_FILE_TRANSFER) {
-            item.menu.addAction(_("Browse Files..."), Lang.bind(this, function(event) {
-                this._applet.browse_address(device.bdaddr, event.get_time(),
-                    Lang.bind(this, function(applet, result) {
-                        try {
-                            applet.browse_address_finish(result);
-                        } catch (e) {
-                            this._ensureSource();
-                            this._source.notify(new MessageTray.Notification(this._source,
-                                 _("Bluetooth"),
-                                 _("Error browsing device"),
-                                 { body: _("The requested device cannot be browsed, error is '%s'").format(e) }));
-                        }
-                    }));
-            }));
-        }
 
         switch (device.type) {
         case GnomeBluetoothApplet.Type.KEYBOARD: